﻿using LJLib.Net.SPI.Com;

namespace DirectService.Server.Com.ROS
{
    /// <summary>
    /// 注册企业(协同系统)
    /// </summary>
    public sealed class RegCompanyRequest : ILJRequest<RegCompanyResponse>
    {
        /// <summary>
        /// 企业名称
        /// </summary>
        public string comname { get; set; }
        /// <summary>
        /// 企业简称
        /// </summary>
        public string simplename { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string custype { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string tele { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 货运部
        /// </summary>
        public string freight { get; set; }
        /// <summary>
        /// 货运部电话
        /// </summary>
        public string freight_tele { get; set; }
        /// <summary>
        /// 会话ID
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string dscrp { get; set; }
        /// <summary>
        /// 登录用户名
        /// </summary>
        public string usercode { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string psw { get; set; }
        /// <summary>
        /// 唯一码GUID,请自行生成一个唯一码，并保存，日后留作它用
        /// </summary>
        public string cusid { get; set; }
        /// <summary>
        /// Logo图片文件
        /// </summary>
        public byte[] logoData { get; set; }
        /// <summary>
        /// Logo图片名称
        /// </summary>
        public string fileName { get; set; }
        /// <summary>
        /// Logo图片扩展名
        /// </summary>
        public string fileType { get; set; }

        public string GetApiName()
        {
            return "RegCompany";
        }
    }

    /// <summary>
    /// ErrMsg为空就注册成功
    /// </summary>
    public sealed class RegCompanyResponse : LJResponse
    {

    }
}
